﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Configuration;
using System.Web.Mvc;
namespace DroidClaim.Web.Models
{
	public class SurveyorLocationModel
	{
		
			    
					 
						[DisplayName("Id")]
						public int Id { get; set; }
									 
					 
						[DisplayName("Latitude")]
						public double Latitude { get; set; }
									 
					 
						[DisplayName("Longitude")]
						public double Longitude { get; set; }
									 
											[Required]
						[StringLength(255, ErrorMessage = "Code cannot be longer than 255 characters.")]
						[Remote("doesCodeExist", "SurveyorLocation", HttpMethod = "POST", AdditionalFields = "Mode, OldValue", ErrorMessage = "Code already exists. Please enter a different Code")]
						[DisplayName("Code")]
						public String Code { get; set; }
									 
					 
						[Required]
						[StringLength(255, ErrorMessage = "Name cannot be longer than 255 characters.")]
						[DisplayName("Name")]
						public String Name { get; set; }
									 
					  
						[Required(ErrorMessage="Please select Status")]
						[DisplayName("Status")]
						public int Status { get; set; }
													public List<SurveyorLocationModel> ListOfSurveyorLocation { get; set; }
	}
}